import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import 'element-plus/dist/index.css'
// 表情包
import parsingEmoji from '@/util/emjoymethod'
// 用户正则校验
import checkU from '@/util/checkUser'
// webscoket连接
import * as socket from '@/util/socket'
import '@/styles/emjoy.css'
// 即时通信

const app = createApp(App)

app.use(router)
app.use(store)
// app.use(socket)
// 定义全局方法
app.config.globalProperties.$utils = parsingEmoji
app.config.globalProperties.$socket = socket

app.config.globalProperties.$checkU = checkU
app.mount('#app')
